package com.ericsson.rm.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericsson.rm.dao.InsertResourceDao;
import com.ericsson.rm.service.ResourceInsertService;
import com.ericsson.rm.vo.ResourceInsertVO;

@Service
public class ResourceInsertServiceImpl implements ResourceInsertService {

	private final static Logger logger = LoggerFactory.getLogger(ResourceInsertServiceImpl.class);
	private final static String CLASS_NAME = ResourceInsertServiceImpl.class.getSimpleName();
	
	
	
	@Autowired
	 InsertResourceDao insertResourceDao;
	
	
	   public void insertResourceIntoTable(ResourceInsertVO resource){
		  
		//   insertResourcesDaoRepository.
		   System.out.println("In serviceImpl :"+resource.getDateOfjoin()+":"+resource.getEmpfirstname()+":"+resource.getSignum());
		   insertResourceDao.insertResourceToDB(resource);
	   }


	public InsertResourceDao getInsertResourceDao() {
		return insertResourceDao;
	}


	public void setInsertResourceDao(InsertResourceDao insertResourceDao) {
		this.insertResourceDao = insertResourceDao;
	} 
	   
	   
	   
	   
}
